package com.zh.familyInfo.service.impl;


import com.zh.familyInfo.dao.AllergyDao;
import com.zh.familyInfo.domain.AllergyDO;
import com.zh.familyInfo.service.AllergyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class AllergyServiceImpl implements AllergyService {
	@Autowired
	private AllergyDao allergyDao;
	
	@Override
	public AllergyDO get(String id){
		return allergyDao.get(id);
	}
	
	@Override
	public List<AllergyDO> list(Map<String, Object> map){
		return allergyDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return allergyDao.count(map);
	}
	
	@Override
	public int save(AllergyDO allergy){
		return allergyDao.save(allergy);
	}
	
	@Override
	public int update(AllergyDO allergy){
		return allergyDao.update(allergy);
	}
	
	@Override
	public int remove(String id){
		return allergyDao.remove(id);
	}
	
	@Override
	public int batchRemove(String[] ids){
		return allergyDao.batchRemove(ids);
	}
	
}
